/**
 * Created by jianyijun on 2020/03/20.
 * 底部路由Tab组件
 */
import React, { Component } from 'react';
import { Image } from 'react-native';

export default class TabBarItem extends Component {
  render() {
    return this.props.focused ? (
      <Image
        source={this.props.selectedImage}
        style={{ tintColor: this.props.tintColor, width: 24, height: 24 }}
        resizeMode={'contain'}//'cover', 'contain', 'stretch', 'repeat', 'center'
      />
    ) : (
      <Image
        source={this.props.normalImage}
        style={{ tintColor: this.props.tintColor, width: 24, height: 24 }}
        resizeMode={'contain'}//'cover', 'contain', 'stretch', 'repeat', 'center'
      />
    );
  }
}
